package com.example.demo.entity.responseJson;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author : 洪俊新
 * @date : 2021/3/5 17:32
 * @description:
 */
@ApiModel("书籍章节表")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ChapterContentRes {
    /**
     * 章节id
     * isnull 0
     */        @ApiModelProperty(value="章节id", position=1)
    String chapterId;
    /**
     * 章节名称
     * isnull 0
     */        @ApiModelProperty(value="章节名称(第几章+章节名称的格式)", position=2)
    private String chapterName;
    /**
     * 章节内容
     * isnull 0
     */        @ApiModelProperty(value="章节内容",position=4)
    private String chapterContent;
    /**
     * 作者有话说
     * isnull 0
     */        @ApiModelProperty(value="作者有话说",position=8)
    private String authorWords;
    /**
     * 章节评论数
     * isnull 0
     */        @ApiModelProperty(value="章节评论数",position=5)
    private Integer chapterCommentCount;
    /**
     * 章节所需积分
     * isnull 0
     */        @ApiModelProperty(value="章节所需积分",position=12)
    private Integer chapterPoints;
    /**
     * 是否免费（0：免费；1：不免费）
     * isnull 0
     */        @ApiModelProperty(value="是否免费（0：免费；1：不免费）",position=13)
    private Integer isFree;

    public Integer getChapterPoints() {
        return chapterPoints;
    }

    public void setChapterPoints(Integer chapterPoints) {
        this.chapterPoints = chapterPoints;
    }

    public Integer getIsFree() {
        return isFree;
    }

    public void setIsFree(Integer isFree) {
        this.isFree = isFree;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String getChapterContent() {
        return chapterContent;
    }

    public void setChapterContent(String chapterContent) {
        this.chapterContent = chapterContent;
    }

    public String getAuthorWords() {
        return authorWords;
    }

    public void setAuthorWords(String authorWords) {
        this.authorWords = authorWords;
    }

    public Integer getChapterCommentCount() {
        return chapterCommentCount;
    }

    public void setChapterCommentCount(Integer chapterCommentCount) {
        this.chapterCommentCount = chapterCommentCount;
    }

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    @Override
    public String toString() {
        return "ChapterContentRes{" +
                "chapterId='" + chapterId + '\'' +
                ", chapterName='" + chapterName + '\'' +
                ", chapterContent='" + chapterContent + '\'' +
                ", authorWords='" + authorWords + '\'' +
                ", chapterCommentCount=" + chapterCommentCount +
                ", chapterPoints=" + chapterPoints +
                ", isFree=" + isFree +
                '}';
    }
}
